/*
* localStorage相关操作
*
*/

// 设置缓存
export const localSave = (key, value) => {
    localStorage.setItem(key, value);
};

// 获取缓存
export const localRead = (key) => {
    localStorage.getItem(key);
};

// 删除某一项
export const localRemove = (key) => {
    localStorage.removeItem(key);
}

// 清空缓存
export const localClear = () => {
    localStorage.clear();
};